﻿<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page isELIgnored="false"%>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript">
	function delete_p() {
		if (confirm("确认删除？")) {
			return true;
		} else {
			return false;
		}
	}
</script>
</head>
<body>
	<h1>任务管理</h1>
	<a href="add.jsp">添加</a>
	<table border="1" cellspacing="1" cellpadding="1">
		<tr>
			<th>目标名称</th>
			<th>详细内容</th>
			<th>操作</th>
		</tr>
		<c:forEach var="item" items="${list}">
			<tr>
				<td>${item.name}</td>
				<td>${item.details }</td>
				<td><a href="update?id=${item.id }">修改</a><a
					href="delete?id=${item.id }" onclick="return delete_p()">删除</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>
